package stores;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import java.util.Set;

import workspace.Workspace;
import beans.Eszkoz;

public interface EszkozStore {

	List<Eszkoz> loadEszkozLista(Workspace workspace) throws SQLException;

	Eszkoz loadEszkozByName(Workspace workspace, String elnevezes)
			throws SQLException;

	Eszkoz loadEszkozById(Workspace workspace, long id) throws SQLException;

	Eszkoz insertEszkoz(Workspace workspace, Eszkoz ujEszkoz)
			throws SQLException;

	Eszkoz updateEszkoz(Workspace workspace, Eszkoz updatedEszkoz)
			throws SQLException;

	boolean deleteEszkoz(Workspace workspace, long id) throws SQLException;

	Map<Eszkoz, Integer> loadEszkozFoglalas(Workspace workspace, long foglalasId)
			throws SQLException;

	boolean insertEszkozFoglalas(Workspace workspace,
			Map<Eszkoz, Integer> eszkozok, long foglalasId) throws SQLException;

	public boolean deleteEszkozFoglalas(Workspace workspace,
			Set<Eszkoz> eszkozok, long foglalasId) throws SQLException;

	public boolean deleteEszkozFoglalas(Workspace workspace,
			Map<Eszkoz, Integer> eszkozok, long foglalasId) throws SQLException;

	boolean deleteEszkozForTest(Workspace workspace, long id)
			throws SQLException;

}
